home *** CD-ROM | disk | FTP | other *** search
- PROGRAM : Watchdog
- AUTHOR : Clifford K. Yamamoto (KA6JRG)
- DATE : Jan 5, 1992
- VERSION : 1.2
- REQUIRES : DOS 2.0 or later, PC/XT/AT/386/486 or compatible, CGA/EGA/VGA
- FUNCTION : Warmboots your computer after a user defined X-Y location on
- the screen doesn't change before a given timeout.
-
-
- ** The Problem **
-
- For those who are not fortunate to have their AA4RE based BBS system(s)
- nearby, remote configuration is often the only alternative. This usually
- leads to the use of the "EX DOS" command to briefly execute a DOS command
- or utility program while reconfiguring.
-
- If you fall into this category how often have you executed a program or
- misstyped a command parameter only to have the BBS lockup since the shell
- to DOS would never return? Here are some typical examples:
-
- EX DOS DATE (DOS will wait until you enter a new date)
- EX DOS EDLIN (You can't quit EDLIN without hitting 'Q')
- EX DOS PKUNZIP STUFF.ZIP (There is a file in STUFF.ZIP that already
- exists so PKUNZIP gives you a warning and
- then asks 'Overwrite (y/n)?')
-
- As you can tell, executing a DOS function or a program that halts until
- user input is received is catastrophic since the BBS cannot regain control
- until the command shell is terminated.
-
-
- ** A solution **
-
- The answer to this problem is a little program I wrote called Watchdog.
- Although Watchdog cannot possibly know what keys to press for the correct
- time or which keys terminate your favorite editor, Watchdog does know how
- to perform a warmboot.
-
- Watchdog will only perform a warmboot when screen activity at a user
- defined X (column) & Y (row) location ceases to change before the timeout
- value is arrived.
-
-
- ** Usage **
-
- Although this program was originally written for use with the AA4RE BBS
- program, it may have other uses in remote operating systems. In our case
- here at the JPL Amateur Radio Club, we have our BBS running on lab which
- is a twenty minute drive for the nearest club member.
-
- By just typing 'watchdog' at the DOS prompt, it will prompt you for the
- necessary parameters as follows :
-
- USAGE: watchdog <column> <row> <timeout>
-
- For example, your 'autoexec.bat' file may contain the following line :
-
- watchdog 18 6 180
-
- This means Watchdog will watch the character in the 18th column and the
- 6th row to change before 180 seconds elapses. If this character does not
- change before then, Watchdog will warmboot the computer. However, if the
- character does change before the timeout, Watchdog will wait for another
- 180 seconds unless the character changes again. In the case of the AA4RE
- BBS, this location happens to be the first digit of the minutes display.
-
- Although 60 seconds would be the expected value, you'll never know when
- you may 'EX DOS' a command that might take longer than 60 seconds. Also
- it is possible the BBS may be busy starting an 'action' or other activity
- so that the time display is updated a second or two late.
-
- The value you decide to use should be based on how often the character
- changes and if there are any anticipated situations when a longer timeout
- is required during maintanence (you wouldn't want the computer to reboot
- while you were editing a file at the keyboard; unless you continue typing
- so the character at your chosen X-Y changes before the timeout).
-
-
- ** Tidbits and limitations **
-
- > Watchdog checks the screen location 18 times a second. If text at the
- location changes too fast, Watchdog may miss it.
-
- > Watchdog does not work with the MDA (Monochrome Display Adapter) or the
- HGC (Hercules Graphics Card).
-
- > Watchdog does not check the parameters you provide for resonable values.
- If you enter X > 80 and Y > 50 Watchdog may be watching video memory in
- strange areas.
-
- > Watchdog stays resident. If you need to load and remove Watchdog on a
- regular basis, you may want to use the 'TsrCom' utilities "mark" and
- "release". These utilities allow you to load and unload TSRs.
-
- > Watchdog can be loaded multiple times. This may be an advantage if you
- need to make sure TWO or more screen locations are changing within their
- allotted time limits.
-
- > Watchdog can usually carry out it's duties so long as your computer is
- not completely locked up where even a Ctl-Alt-Del won't work. If your
- program does enter a state like this, Watchdog may not be able to help
- you.
-
-
- ** Legalities, etc. **
-
- This software is FREE FREE FREE FREE FREE!! I don't want money for it
- and I don't want anyone to be charged for it. Go ahead and copy this as
- much as you like and pass it around. Just DO NOT charge anybody for it.
- Also this software is not copyrighted or anything, but please don't go
- around telling others you wrote it.
-
- Now the liabilites. I am NOT RESPONSBILE for any time, data, money,
- equipment, friends, etc. that is/are lost for using this program. This
- software is offered as is. You assume all responsibility for using it.
- I am NOT RESPONSIBLE for any negligent or deliberate misuse of this
- program. You use this program at your OWN RISK! I make no guarantees
- about its reliability, stability, compatibility or operation with your
- particular computer or your software.
-
-
- ** Feedback about Bugs, Features, etc. **
-
- I welcome feedback about Watchdog. If you have a comment, good or bad,
- I'll will try to respond. This program was written in my spare time so I
- may not always be available. As this software is free I DO NOT have any
- customer support whatsoever. If you cannot resolve a problem, ask around
- and/or try out the program on another computer.
-
- If you feel you have found a genuine bug, please report it to me to one
- of the email addresses below. Please tell me the configuration of your
- computer and what software, plus version numbers, you were running.
-
- About features. This program was meant to be small and simple. If you
- really need support for MDA/HGC, let me know. It can be added if there is
- enough interest for it. Also if you'd like to see some other feature added,
- let me know.
-
- I can be reached at :
-
- Internet: cky@euclid.Jpl.Nasa.Gov
- Bitnet: cky%euclid.Jpl.Nasa.Gov@Hamlet.Bitnet
- Uucp: uunet!euclid.Jpl.Nasa.Gov!cky@uunet.UU.NET
- ames!elroy!jato!jpl-mil!euclid.jpl.nasa.gov!cky
- Packet: KA6JRG@W6VIO.#SOCA.CA.USA.NA
-